﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="/dmodule">
		<html>
			<head>
				<meta charset="utf-8"/>
				<meta name="viewport" content="width=device-width, initial-scale=1"/>
				<title>IETM浏览器</title>
				<link rel="stylesheet" href="/css/important_css.css" type="text/css"/>
				<link type="text/css" href="/css/dm/s1000D.css" rel="stylesheet"/>
				<script type="text/javascript" src="/js/jquery.js"/>
				<script type="text/javascript" src="/js/jquery-ui.js"/>
				<script type="text/javascript" src="/js/UnityObject2.js"/>
				<script type="text/javascript" src="/js/procedure_api.js"/>
				<script type="text/javascript" src="/js/media.js"/>
				<script type="text/javascript" src="/js/dialog-help.js"/>
				<script type="text/javascript" src="/js/public.js"/>
				<script type="text/javascript" src="/js/jquery.form.js"/>
				<script type="text/javascript" src="/js/zebra_dialog.src.js"/>
				<script type="text/javascript" src="/js/Tdrag.js"/>
				<script type="text/javascript" src="/js/menu.js" charset="UTF-8"/>
				<script type="text/javascript" src="/js/note.js"/>
				<script type="text/javascript" src="/js/pprompt.js"/>
				<script type="text/javascript" src="/ietm/js/dm-plugin.js"/>
				<style type="text/css">
	    	body,html{background:#fff;width:100%;height:100%;overflow:auto}
			</style>
			</head>
			<body>
				<div class="home-d">
					<div class="home-d-t active">
						<div class="home-d-t-pub">
							<div class="home-d-t-title">
								<span>数据模块信息</span>
							</div>
						</div>
						<div class="home-d-t-content">
							<table width="50%" align="left" cellpadding="4" cellspacing="0">
								<tr>
									<td width="100%" colspan="2" style="font-weight:bold;">标识信息</td>
								</tr>
								<!--xml解析内容-->
								<tr>
									<td>数据模块编码:</td>
									<td>
										<xsl:for-each select="identAndStatusSection/dmAddress/dmIdent">
											<xsl:apply-templates select="dmCode" mode="dmCode"/>
										</xsl:for-each>
									</td>
								</tr>
								<tr>
									<td>版本信息:</td>
									<td>
										<xsl:for-each select="identAndStatusSection/dmAddress/dmIdent">
											<xsl:apply-templates select="issueInfo" mode="issueInfo"/>
										</xsl:for-each>
									</td>
								</tr>
								<tr>
									<td>发布日期:[yyyy-mm-dd]</td>
									<td>
										<xsl:for-each select="identAndStatusSection/dmAddress/dmAddressItems">
											<xsl:apply-templates select="issueDate" mode="issueDate"/>
										</xsl:for-each>
									</td>
								</tr>
								<tr>
									<td>语言:[国家/语言]</td>
									<td>
										<xsl:for-each select="identAndStatusSection/dmAddress/dmIdent">
											<xsl:apply-templates select="language" mode="language"/>
										</xsl:for-each>
									</td>
								</tr>
							</table>
							<table width="50%" align="right" cellpadding="0" cellspacing="0">
								<tr>
									<td width="100%" colspan="2" style="font-weight:bold;">状态信息</td>
								</tr>
								<!--xml解析内容-->
								<tr>
									<td>密级:</td>
									<td>
										<xsl:for-each select="identAndStatusSection/dmStatus">
											<xsl:apply-templates select="security" mode="security"/>
										</xsl:for-each>
									</td>
								</tr>
								<tr>
									<td>责任合作单位:</td>
									<td>
										<xsl:for-each select="identAndStatusSection/dmStatus">
											<xsl:apply-templates select="responsiblePartnerCompany" mode="responsiblePartnerCompany"/>
										</xsl:for-each>
									</td>
								</tr>
								<tr>
									<td>创作单位:</td>
									<td>
										<xsl:for-each select="identAndStatusSection/dmStatus">
											<xsl:apply-templates select="originator" mode="originator"/>
										</xsl:for-each>
									</td>
								</tr>
								<tr>
									<td>适用性信息:</td>
									<td>
										<xsl:value-of select="identAndStatusSection/dmStatus/applic/displayText/simplePara"/>
									</td>
								</tr>
								<tr>
									<td>质量验证:</td>
									<td>理论验证(TT)</td>
								</tr>
							</table>
						</div>
					</div>
					<div class="home-d-b">
						<!--左右的样式-->
						<div class="home-d-b-tow">
							<div>
								<div class="home-d-t-pub">
									<div class="home-d-t-title">
										<!--解析内容标题-->
										<span class="dmtitle">
											<xsl:for-each select="identAndStatusSection/dmAddress/dmAddressItems">
												<xsl:apply-templates select="dmTitle" mode="dmTitle"/>
											</xsl:for-each>
										</span>
									</div>
									<div class="home-d-t-syx">
										<span>适用性：
								<xsl:value-of select="identAndStatusSection/dmStatus/applic/displayText/simplePara"/>
										</span>
										<span>密级：
							<xsl:for-each select="identAndStatusSection/dmStatus">
												<xsl:apply-templates select="security" mode="security1"/>
											</xsl:for-each>
										</span>
										<span class="home-d-m-show">更多>></span>
										<span class="home-d-m-hide">隐藏>></span>
									</div>
								</div>
								<div class="home-d-b-content" id="article">
									<!--解析主题内容-->
									<xsl:apply-templates select="content"/>
									<div class="content-btn">
										<a href="#" id="btn_ksgl">
											<img src="/images/btn_ksgl.png"/>
										</a>
										<a href="#" id="btn_cxgl">
											<img src="/images/btn_cxgl.png"/>
										</a>
									</div>
								</div>
							</div>
							<div class="home-d-b-towr" style="display:none">
								<div class="home-d-t-pub">
									<div class="home-d-t-title">
										<span>多媒体显示区</span>
									</div>
									<div class="home-d-t-syx">
										<div class="cgmu3dclose"/>
									</div>
									<div class="home-d-t-syx" style="margin-right:30px;">
										<div class="fullscreen"/>
									</div>
								</div>
								<div class="home-d-b-content" id="ietm-media">
						
						</div>
							</div>
						</div>
					</div>
				</div>
			</body>
		</html>
	</xsl:template>
	<!--主体结束，模板开始-->
	<!--图表解析-->
	<xsl:template match="*" mode="figure">
		<div class="figIndent">
		<a><xsl:if test="@id">
					<xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute>
				</xsl:if></a>
			<xsl:for-each select="graphic/hotspot">
				<a>
					<xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute>
				</a>
				<xsl:text>
			</xsl:text>
				<!--提取元素时要求换行-->
			</xsl:for-each>
			<a>
				<xsl:attribute name="href">%PATH%/<xsl:value-of select="graphic/@infoEntityIdent"/>.html</xsl:attribute>
				<xsl:if test="graphic/hotspot/@id">
					<xsl:attribute name="name"><xsl:value-of select="substring(graphic/hotspot/@id,1,8)"/></xsl:attribute>
				</xsl:if>
				<!-- <xsl:value-of select="graphic/@infoEntityIdent"/> -->
			</a>
		</div>
		<div class="thumbnail">
			<a>
				<xsl:attribute name="href">%PATH%/<xsl:value-of select="graphic/@infoEntityIdent"/>.html</xsl:attribute>
				<xsl:element name="image">
					<xsl:attribute name="alt">Thumbnail</xsl:attribute>
					<xsl:attribute name="id">%PICID%</xsl:attribute>
					<xsl:attribute name="class">thumbnail</xsl:attribute>
					<xsl:attribute name="height">100</xsl:attribute>
					<xsl:attribute name="src">%PATH%/<xsl:value-of select="graphic/@infoEntityIdent"/>.%ext%</xsl:attribute>
					<!--<xsl:attribute name="src"><xsl:choose><xsl:when test="title='flash'">
			%PATH%/<xsl:value-of select="graphic/@infoEntityIdent"/>.png
		</xsl:when><xsl:otherwise>
			%PATH%/<xsl:value-of select="graphic/@infoEntityIdent"/>.jpg
		</xsl:otherwise></xsl:choose></xsl:attribute>-->
				</xsl:element>
				<xsl:if test="graphic/hotspot">
					<div style="display:none;">
						<table cellspacing="0" class="bordered cgm_hotspot_list">
							<thead>
								<tr>
									<th class="bordered">
										<p class="legend">部件号</p>
									</th>
									<th class="bordered">
										<p class="legend">描述</p>
									</th>
								</tr>
							</thead>
							<tbody>
								<xsl:for-each select="graphic/hotspot">
									<tr>
										<td class="bordered">
											<p class="legend cgm_hotspot_element">
												<xsl:value-of select="./@applicationStructureName"/>
											</p>
										</td>
										<td class="bordered">
											<p class="legend">
												<xsl:value-of select="./@objectDescr"/>
											</p>
										</td>
									</tr>
								</xsl:for-each>
							</tbody>
						</table>
					</div>
				</xsl:if>
			</a>
			<div class="textcenter"><xsl:if test="@id"><xsl:attribute name="idno"><xsl:value-of select="@id"/></xsl:attribute></xsl:if>多媒体 %PICNO% <xsl:value-of select="title"/>
			</div>
		</div>
		<div style="clear:both"/>
		<xsl:for-each select="legend/definitionList">
			<p class="indent">
				<xsl:apply-templates select="." mode="list"/>
			</p>
		</xsl:for-each>
	</xsl:template>
	<!--解析标题-->
	<xsl:template match="*" mode="dmTitle1s">
		<xsl:value-of select="techName"/> - <xsl:value-of select="infoName"/>
	</xsl:template>
	<xsl:template match="*" mode="dmTitle">
		<td class="dmtitle">
			<xsl:value-of select="techName"/> - <xsl:value-of select="infoName"/>
		</td>
	</xsl:template>
	<!--解析资料编号-->
	<xsl:template match="*" mode="dmCode">
		<xsl:value-of select="@modelIdentCode"/>-<xsl:value-of select="@systemDiffCode"/>-<xsl:value-of select="@systemCode"/>-<xsl:value-of select="@subSystemCode"/>
		<xsl:value-of select="@subSubSystemCode"/>-<xsl:value-of select="@assyCode"/>-<xsl:value-of select="@disassyCode"/>
		<xsl:value-of select="@disassyCodeVariant"/>-<xsl:value-of select="@infoCode"/>
		<xsl:value-of select="@infoCodeVariant"/>-<xsl:value-of select="@itemLocationCode"/>
	</xsl:template>
	<!--版本信息-->
	<xsl:template match="*" mode="issueInfo">
		[版本号:<xsl:value-of select="@issueNumber"/>]
		<span style="display:none">
			<xsl:value-of select="@inWork"/>
		</span>
	</xsl:template>
	<!--发布日期-->
	<xsl:template match="*" mode="issueDate">
		<xsl:value-of select="@year"/>-<xsl:value-of select="@month"/>-<xsl:value-of select="@day"/>
	</xsl:template>
	<!--语言-->
	<xsl:template match="*" mode="language">
		<xsl:value-of select="@countryIsoCode"/>/<xsl:value-of select="@languageIsoCode"/>
	</xsl:template>
	<!--秘级-->
	<xsl:template match="*" mode="security">
		<xsl:choose>
			<xsl:when test="./@securityClassification='01'">
				[级别:01 公开]
			</xsl:when>
			<xsl:when test="./@securityClassification='02'">
				[级别:02 内部]
			</xsl:when>
			<xsl:when test="./@securityClassification='03'">
				[级别:03 秘密]
			</xsl:when>
			<xsl:when test="./@securityClassification='04'">
				[级别:04 机密]
			</xsl:when>
			<xsl:when test="./@securityClassification='05'">
				[级别:05 绝密]
			</xsl:when>
			<xsl:otherwise>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<!--密级划分-->
	<!--秘级-->
	<xsl:template match="*" mode="security1">
		<xsl:choose>
			<xsl:when test="./@securityClassification='01'">
				公开
			</xsl:when>
			<xsl:when test="./@securityClassification='02'">
				内部
			</xsl:when>
			<xsl:when test="./@securityClassification='03'">
				秘密
			</xsl:when>
			<xsl:when test="./@securityClassification='04'">
				机密
			</xsl:when>
			<xsl:when test="./@securityClassification='05'">
				绝密
			</xsl:when>
			<xsl:otherwise>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<!--responsiblePartnerCompany-->
	<xsl:template match="*" mode="responsiblePartnerCompany">
		[<xsl:value-of select="@enterpriseCode"/>]
	</xsl:template>
	<!--originator-->
	<xsl:template match="*" mode="originator">
		[<xsl:value-of select="@enterpriseCode"/>]
	</xsl:template>
	<!--解析资料编号_pm-->
	<xsl:template match="*" mode="pmCode">
		<xsl:value-of select="@modelIdentCode"/>-<xsl:value-of select="@pmIssuer"/>-<xsl:value-of select="@pmNumber"/>-<xsl:value-of select="@pmVolume"/>
	</xsl:template>
	<!--解析主体内容-->
	<xsl:template match="content">
		<div id="content">
			<xsl:for-each select="refs">
				<xsl:apply-templates select="." mode="refs"/>
			</xsl:for-each>
			<xsl:choose>
				<xsl:when test="faultIsolation">
					<xsl:apply-templates select="faultIsolation"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:apply-templates select="faultReporting"/>
				</xsl:otherwise>
			</xsl:choose>
		</div>
	</xsl:template>
	<!--faultIsolation节点解析-->
	<xsl:template match="faultIsolation">
		<xsl:for-each select="commonInfo">
			<xsl:for-each select="commonInfoDescrPara/title">
				<p class="titleItalic">{{<xsl:value-of select="."/>}}</p>
			</xsl:for-each>
			<xsl:for-each select="commonInfoDescrPara/para">
				<p class="indent">
					<xsl:value-of select="."/>
				</p>
			</xsl:for-each>
			<xsl:for-each select="title">
				<p class="titleItalic">{{<xsl:value-of select="."/>}}</p>
			</xsl:for-each>
			<xsl:for-each select="para">
				<p class="indent">
					<xsl:value-of select="."/>
				</p>
			</xsl:for-each>
		</xsl:for-each>
		<xsl:for-each select="faultIsolationProcedure">
			<p class="subtitle">故障代码: <xsl:value-of select="fault/@faultCode"/></p>
			<p class="subtitle">故障描述</p>
			<p class="indent">
				<xsl:value-of select="faultDescr/descr"/>
			</p>
			<xsl:for-each select="isolationProcedure">
				<xsl:for-each select="preliminaryRqmts">
					<xsl:apply-templates select="." mode="preliminaryRqmts"/>
				</xsl:for-each>
				<xsl:for-each select="isolationMainProcedure">
					<xsl:apply-templates select="." mode="isolationMainProcedure"/>
				</xsl:for-each>
				<!--工作结束后条件-->
				<xsl:for-each select="closeRqmts">
					<a name="closereqs">
						<p class="subtitle" name="closereqs">{{工作结束后条件}}</p>
					</a>
					<xsl:for-each select="reqCondGroup">
						<xsl:apply-templates select="." mode="reqCondGroup"/>
					</xsl:for-each>
				</xsl:for-each>
			</xsl:for-each>
		</xsl:for-each>
	</xsl:template>
	<!--faultReporting节点解析-->
	<xsl:template match="faultReporting">
		<p class="subtitle">故障报告</p>
		<xsl:for-each select="observedFault">
			<xsl:for-each select="faultDescr/descr">
				<p class="indent">{{<xsl:value-of select="."/>}}</p>
			</xsl:for-each>
			<!--contextAndIsolationInfo节点解析-->
			<xsl:for-each select="contextAndIsolationInfo">
				<xsl:for-each select="faultContext">
					<p class="titleItalic">
						<xsl:value-of select="."/>
					</p>
				</xsl:for-each>
				<xsl:for-each select="isolationInfo/diagnosticProcess">
					<xsl:for-each select="diagnosticsReason">
						<p class="indent">
							<xsl:value-of select="."/>
						</p>
					</xsl:for-each>
					<xsl:for-each select="repair/refs/dmRef">
						<table cellspacing="0" class="bordered">
							<colgroup>
								<col/>
								<col/>
							</colgroup>
							<thead>
								<tr>
									<th class="bordered">
										<p class="table">参考</p>
									</th>
									<th class="bordered">
										<p class="table">任务名称</p>
									</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td class="bordered">
										<p class="table">
											<a href="javascript:void(0);">
												<xsl:attribute name="href">%PATH%DMC-<xsl:apply-templates select="dmRefIdent/dmCode" mode="dmCode"/>.html</xsl:attribute>
												 <xsl:attribute name="onclick">refDM('<xsl:apply-templates select="dmRefIdent/dmCode" mode="dmCode"/>')</xsl:attribute><xsl:apply-templates select="dmRefIdent/dmCode" mode="dmCode"/>
											</a>
										</p>
									</td>
									<td class="bordered">
										<p class="table">
											<xsl:apply-templates select="dmRefAddressItems/dmTitle" mode="dmTitle1s"/>
										</p>
									</td>
								</tr>
							</tbody>
						</table>
					</xsl:for-each>
				</xsl:for-each>
			</xsl:for-each>
		</xsl:for-each>
		<xsl:for-each select="commonInfo">
			<xsl:for-each select="commonInfoDescrPara/title">
				<p class="titleItalic">{{<xsl:value-of select="."/>}}</p>
			</xsl:for-each>
			<xsl:for-each select="commonInfoDescrPara/para">
				<p class="indent">
					<xsl:value-of select="."/>
				</p>
			</xsl:for-each>
			<xsl:for-each select="figure">
				<xsl:apply-templates select="." mode="figure"/>
			</xsl:for-each>
			<xsl:for-each select="para|warning|caution|note">
				<xsl:apply-templates select="." mode="para_warning_caution_note"/>
			</xsl:for-each>
			<xsl:for-each select="commonInfoDescrPara">
				<p class="indent">
					<xsl:value-of select="para"/>
				</p>
			</xsl:for-each>
		</xsl:for-each>
		<!--correlatedFault节点解析-->
		<xsl:for-each select="correlatedFault">
			<!--basicCorrelatedFaults节点解析-->
			<xsl:for-each select="basicCorrelatedFaults">
				<!--内容待确定-->
			</xsl:for-each>
			<!--isolateDetectedFault节点解析-->
			<xsl:for-each select="isolateDetectedFault">
				<!--内容待确定-->
			</xsl:for-each>
			<!--remarks节点解析-->
			<xsl:for-each select="remarks">
				<!--内容待确定-->
			</xsl:for-each>
		</xsl:for-each>
		<!--detectedFault节点解析-->
		<xsl:for-each select="detectedFault">
			<xsl:if test="faultDescr">
				<p class="heading">故障描述</p>
				<p class="indent">
					<xsl:value-of select="faultDescr/descr"/>
				</p>
				<p class="subtitle">故障检测</p>
			</xsl:if>
			<!--detectionInfo节点解析-->
			<xsl:for-each select="detectionInfo">
				<table cellspacing="0" class="bordered">
					<colgroup>
						<col/>
						<col/>
						<col/>
						<col/>
					</colgroup>
					<thead>
						<tr>
							<th class="bordered">
								<p class="table">术语</p>
							</th>
							<th class="bordered">
								<p class="table">NSN</p>
							</th>
							<th class="bordered">
								<p class="table">CNS引用 – 标识编号</p>
							</th>
							<th class="bordered">
								<p class="table">缩写</p>
							</th>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td class="bordered">
								<p class="table">
									<xsl:value-of select="detectedLruItem/lru/name"/>
								</p>
							</td>
							<td class="bordered">
								<p class="table">
					  </p>
							</td>
							<td class="bordered">
								<p class="table">
									<xsl:value-of select="detectedLruItem/lru/identNumber/manufacturerCode"/>
								</p>
							</td>
							<td class="bordered">
								<p class="table">
					  </p>
							</td>
						</tr>
					</tbody>
				</table>
			</xsl:for-each>
			<!--isolateDetectedFault节点解析-->
			<xsl:for-each select="isolateDetectedFault">
				<xsl:for-each select="faultIsolationRef/refs">
					<xsl:apply-templates select="." mode="refs"/>
				</xsl:for-each>
			</xsl:for-each>
			<!--remarks节点解析-->
			<xsl:for-each select="remarks">
				<p class="indent">
					<span class="em01" xml:space="preserve">Remarks:   </span>
					<xsl:value-of select="simplePara"/>
				</p>
			</xsl:for-each>
		</xsl:for-each>
	</xsl:template>
	<xsl:template match="*" mode="isolationMainProcedure">
		<p class="heading">{{程序}}</p>
		<xsl:for-each select="*">
			<xsl:if test="name(.) = 'isolationStep'">
				<div style="display:none">
					<xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
					<xsl:apply-templates select="." mode="isolationStep">
						<!-- <xsl:with-param name="num">
								<xsl:number level="multiple" count="isolationStep|isolationProcedureEnd"/>
							</xsl:with-param> -->
					</xsl:apply-templates>
				</div>
			</xsl:if>
			<xsl:if test="name(.) = 'isolationProcedureEnd'">
				<div style="display:none">
					<xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
					<xsl:apply-templates select="." mode="isolationProcedureEnd">
						<!-- <xsl:with-param name="num">
							<xsl:number level="multiple" count="isolationStep|isolationProcedureEnd"/>
						</xsl:with-param> -->
					</xsl:apply-templates>
				</div>
			</xsl:if>
			<xsl:if test="name(.) = 'figure'">
				<xsl:apply-templates select="." mode="figure"/>
			</xsl:if>
		</xsl:for-each>
	</xsl:template>
	<!--internalRef内容解析-->
	<xsl:template match="*" mode="internalRef">
		<xsl:param name="name">
			<xsl:value-of select="@internalRefTargetType"/>
		</xsl:param>
		<xsl:param name="value">
			<xsl:value-of select="normalize-space(@internalRefId)"/>
		</xsl:param>
		<xsl:param name="text"/>
		<!--para-->
		<xsl:if test="$name = 'para'">
			<a>
				<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
				<xsl:choose>
					<xsl:when test="$text=''">
						<xsl:text>段落 </xsl:text>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of select="$text"/>
						<xsl:text> </xsl:text>
					</xsl:otherwise>
				</xsl:choose>
			</a>
		</xsl:if>
		<!--figure-->
		<xsl:if test="$name = 'figure'">
			<xsl:for-each select="//*">
				<xsl:if test="name(.)=$name">
					<xsl:if test="@id=$value">
						<a>
							<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
							<xsl:choose>
								<xsl:when test="$text=''">
									<xsl:text>多媒体 </xsl:text>
									<xsl:text> </xsl:text>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select="$text"/>
									<xsl:text> </xsl:text>
								</xsl:otherwise>
							</xsl:choose>
						</a>
					</xsl:if>
				</xsl:if>
			</xsl:for-each>
		</xsl:if>
		<!--supequip-->
		<xsl:if test="$name = 'supequip'">
			<xsl:for-each select="//supportEquipDescrGroup">
				<xsl:for-each select="supportEquipDescr">
					<xsl:if test="@id = $value">
						<a>
							<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
							<xsl:value-of select="name"/>
						</a>
					</xsl:if>
				</xsl:for-each>
			</xsl:for-each>
		</xsl:if>
		<!--supply-->
		<xsl:if test="$name = 'supply'">
			<xsl:for-each select="//supplyDescrGroup">
				<xsl:for-each select="supplyDescr">
					<xsl:if test="@id = $value">
						<a>
							<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
							<xsl:value-of select="name"/>
						</a>
					</xsl:if>
				</xsl:for-each>
			</xsl:for-each>
		</xsl:if>
		<!--spares-->
		<xsl:if test="$name = 'spares'">
			<xsl:for-each select="//spareDescrGroup">
				<xsl:for-each select="spareDescr">
					<xsl:if test="@id = $value">
						<a>
							<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
							<xsl:value-of select="name"/>
						</a>
					</xsl:if>
				</xsl:for-each>
			</xsl:for-each>
		</xsl:if>
		<!--step-->
		<xsl:if test="$name = 'step'">
			<a>
				<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
				<xsl:choose>
					<xsl:when test="$text=''">
						<xsl:text>步骤 </xsl:text>
						<xsl:text> </xsl:text>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of select="$text"/>
						<xsl:text> </xsl:text>
					</xsl:otherwise>
				</xsl:choose>
			</a>
		</xsl:if>
		<!--table-->
		<xsl:if test="$name = 'table'">
			<a>
				<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
				<xsl:choose>
					<xsl:when test="$text=''">
						<xsl:text>表格 </xsl:text>
						<xsl:text> </xsl:text>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of select="$text"/>
						<xsl:text> </xsl:text>
					</xsl:otherwise>
				</xsl:choose>
			</a>
		</xsl:if>
		<!--irtt01-->
		<xsl:if test="$name = 'irtt01'">
			<a>
				<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
				<xsl:choose>
					<xsl:when test="$text=''">
						<xsl:text>多媒体 </xsl:text>
						<xsl:text> </xsl:text>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of select="$text"/>
						<xsl:text> </xsl:text>
					</xsl:otherwise>
				</xsl:choose>
			</a>
		</xsl:if>
		<!--irtt02-->
		<xsl:if test="$name = 'irtt02'">
			<a>
				<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
				<xsl:choose>
					<xsl:when test="$text=''">
						<xsl:text>表格 </xsl:text>
						<xsl:text> </xsl:text>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of select="$text"/>
						<xsl:text> </xsl:text>
					</xsl:otherwise>
				</xsl:choose>
			</a>
		</xsl:if>
		<!--irtt05-->
		<xsl:if test="$name = 'irtt05'">
			<xsl:for-each select="//supportEquipDescrGroup">
				<xsl:for-each select="supportEquipDescr">
					<xsl:if test="@id = $value">
						<a>
							<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
							<xsl:value-of select="name"/>
						</a>
					</xsl:if>
				</xsl:for-each>
			</xsl:for-each>
		</xsl:if>
		<!--irtt07-->
		<xsl:if test="$name = 'irtt07'">
			<a>
				<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
				<xsl:choose>
					<xsl:when test="$text=''">
						<xsl:text>段落 </xsl:text>
						<xsl:text> </xsl:text>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of select="$text"/>
						<xsl:text> </xsl:text>
					</xsl:otherwise>
				</xsl:choose>
			</a>
		</xsl:if>
		<!--irtt11-->
		<xsl:if test="$name = 'irtt11'">
			<a>
				<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
				<xsl:choose>
					<xsl:when test="$text=''">
						<xsl:text>多媒体 </xsl:text>
						<xsl:text> </xsl:text>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of select="$text"/>
						<xsl:text> </xsl:text>
					</xsl:otherwise>
				</xsl:choose>
			</a>
		</xsl:if>
		<!--hotspot-->
		<xsl:if test="$name = 'hotspot'">
			<a>
				<!--<xsl:attribute name="href"><xsl:value-of select="../@infoEntityIdent"/></xsl:attribute>-->
				<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
				<xsl:choose>
					<xsl:when test="$text=''">
						<xsl:text>多媒体</xsl:text>
						<xsl:text> </xsl:text>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of select="$text"/>
						<xsl:text> </xsl:text>
					</xsl:otherwise>
				</xsl:choose>
			</a>
		</xsl:if>
	</xsl:template>
	<!--preliminaryRqmts节点解析-->
	<xsl:template match="*" mode="preliminaryRqmts">
		<a name="prelreqs">
			<p class="subtitle">{{必要准备工作}}</p>
		</a>
		<!--必要条件-->
		<xsl:for-each select=".">
			<!--reqCondGroup节点解析-->
			<xsl:for-each select="reqCondGroup">
				<xsl:apply-templates select="." mode="reqCondGroup"/>
			</xsl:for-each>
			<!--reqPersons节点解析-->
			<xsl:for-each select="reqPersons">
				<xsl:apply-templates select="." mode="reqPersons"/>
			</xsl:for-each>
			<!--reqTechInfoGroup节点解析-->
			<xsl:for-each select="reqTechInfoGroup">
				<xsl:apply-templates select="." mode="reqTechInfoGroup"/>
			</xsl:for-each>
			<!--reqSupportEquips节点解析-->
			<xsl:for-each select="reqSupportEquips">
				<xsl:apply-templates select="." mode="reqSupportEquips"/>
			</xsl:for-each>
			<!--reqSupplies节点解析-->
			<xsl:for-each select="reqSupplies">
				<xsl:apply-templates select="." mode="reqSupplies"/>
			</xsl:for-each>
			<!--reqSpares节点解析-->
			<xsl:for-each select="reqSpares">
				<xsl:apply-templates select="." mode="reqSpares"/>
			</xsl:for-each>
			<!--reqSafety节点解析-->
			<xsl:for-each select="reqSafety">
				<xsl:apply-templates select="." mode="reqSafety"/>
			</xsl:for-each>
		</xsl:for-each>
	</xsl:template>
	<!--reqCondGroup节点解析-->
	<xsl:template match="*" mode="reqCondGroup">
		<p class="subtitle">必备条件</p>
		<a name="reqconds"/>
		<table cellspacing="0" class="bordered" width="800px">
			<caption class="tableTitle">表 %TABLENO% 必备条件</caption>
			<colgroup>
				<col/>
				<col/>
			</colgroup>
			<thead>
				<tr>
					<th class="bordered">
						<p class="table">条件</p>
					</th>
					<th class="bordered">
						<p class="table">数据模块/技术出版物</p>
					</th>
				</tr>
			</thead>
			<tbody>
				<xsl:for-each select="*">
					<tr>
						<!--noConds节点-->
						<xsl:if test="name(.) = 'noConds'">
							<td class="bordered">
								<p class="table">无</p>
							</td>
							<td class="bordered">
								<p class="table"/>
							</td>
						</xsl:if>
						<!--reqCondDm节点-->
						<xsl:if test="name(.) = 'reqCondDm'">
							<td class="bordered">
								<p class="table">
									<xsl:value-of select="reqCond"/>
								</p>
							</td>
							<td class="bordered">
								<p class="table">
									<xsl:apply-templates select="dmRef/dmRefIdent/dmCode" mode="dmCode"/>
								</p>
							</td>
						</xsl:if>
						<!--reqCondPm节点-->
						<xsl:if test="name(.) = 'reqCondPm'">
							<td class="bordered">
								<p class="table">
									<xsl:value-of select="reqCond"/>
								</p>
							</td>
							<td class="bordered">
								<p class="table">
									<xsl:apply-templates select="pmRef/pmRefIdent/pmCode" mode="pmCode"/>
								</p>
							</td>
						</xsl:if>
						<!--reqCondNoRef节点-->
						<xsl:if test="name(.) = 'reqCondNoRef'">
							<td class="bordered">
								<p class="table">
									<xsl:apply-templates select="reqCond" mode="para"/>
								</p>
							</td>
							<td class="bordered">
								<p class="table"/>
							</td>
						</xsl:if>
						<!--reqCondCircuitBreaker节点-->
						<xsl:if test="name(.) = 'reqCondCircuitBreaker'">
							<td class="bordered">
								<p class="table">
									<xsl:value-of select="reqCond"/>
								</p>
							</td>
							<td class="bordered">
								<p class="table"/>
							</td>
						</xsl:if>
						<!--reqCondExternalPub节点-->
						<xsl:if test="name(.) = 'reqCondExternalPub'">
							<td class="bordered">
								<p class="table">
									<xsl:value-of select="reqCond"/>
								</p>
							</td>
							<td class="bordered">
								<p class="table">
									<xsl:value-of select="externalPubRef/externalPubRefIdent/externalPubCode/@pubCodingScheme"/>-<xsl:value-of select="externalPubRef/externalPubRefIdent/externalPubCode"/>
								</p>
							</td>
						</xsl:if>
					</tr>
				</xsl:for-each>
			</tbody>
		</table>
		<br/>
	</xsl:template>
	<!--reqPersons节点解析-->
	<xsl:template match="*" mode="reqPersons">
		<p class="subtitle">所需人员</p>
		<a name="supequip"/>
		<table cellspacing="0" class="bordered" width="800px">
			<caption class="tableTitle">表 %TABLENO% 所需人员</caption>
			<colgroup>
				<col/>
				<col/>
				<col/>
				<col/>
			</colgroup>
			<thead>
				<tr>
					<th class="bordered">
						<p class="table">人员</p>
					</th>
					<th class="bordered">
						<p class="table">类别</p>
					</th>
					<th class="bordered">
						<p class="table">技能水平</p>
					</th>
					<th class="bordered">
						<p class="table">专业代码</p>
					</th>
					<th class="bordered">
						<p class="table">预计时间</p>
					</th>
				</tr>
			</thead>
			<tbody>
				<xsl:choose>
					<xsl:when test="noPersons">
						<tr>
							<td class="bordered">
								<p class="table">无</p>
							</td>
							<td class="bordered">
								<p class="table"/>
							</td>
							<td class="bordered">
								<p class="table"/>
							</td>
							<td class="bordered">
								<p class="table"/>
							</td>
							<td class="bordered">
								<p class="table"/>
							</td>
						</tr>
					</xsl:when>
					<xsl:otherwise>
						<xsl:choose>
							<xsl:when test="personnel/@numRequired">
								<xsl:for-each select="person">
									<tr>
										<td class="bordered">
											<p class="table">
												<xsl:text>Man </xsl:text>
												<xsl:value-of select="@man"/>
											</p>
										</td>
										<td class="bordered">
											<p class="table">
												<xsl:value-of select="personCategory/@personCategoryCode"/>
											</p>
										</td>
										<td class="bordered">
											<p class="table">
												<xsl:apply-templates select="personSkill" mode="personSkill"/>
											</p>
										</td>
										<td class="bordered">
											<p class="table">
												<xsl:value-of select="trade"/>
											</p>
										</td>
										<td class="bordered">
											<xsl:if test="estimatedTime">
												<xsl:value-of select="estimatedTime"/>
												<xsl:text> </xsl:text>
												<xsl:value-of select="estimatedTime/@unitOfMeasure"/>
											</xsl:if>
										</td>
									</tr>
									<xsl:if test="position()=last()">
										<xsl:if test="../personnel">
											<xsl:call-template name="loop">
												<xsl:with-param name="Count">
													<xsl:value-of select="number(../personnel/@numRequired)-position()"/>
												</xsl:with-param>
											</xsl:call-template>
										</xsl:if>
									</xsl:if>
								</xsl:for-each>
							</xsl:when>
							<xsl:otherwise>
								<xsl:choose>
									<xsl:when test="person">
										<xsl:for-each select="person">
											<tr>
												<td class="bordered">
													<p class="table">
														<xsl:value-of select="@man"/>
													</p>
												</td>
												<td class="bordered">
													<p class="table">
														<xsl:value-of select="personCategory/@personCategoryCode"/>
													</p>
												</td>
												<td class="bordered">
													<p class="table">
														<xsl:apply-templates select="personSkill" mode="personSkill"/>
													</p>
												</td>
												<td class="bordered">
													<p class="table">
														<xsl:value-of select="trade"/>
													</p>
												</td>
												<td class="bordered">
													<p class="table">
														<xsl:if test="estimatedTime">
															<xsl:value-of select="estimatedTime"/>
															<xsl:text> </xsl:text>
															<xsl:value-of select="estimatedTime/@unitOfMeasure"/>
														</xsl:if>
													</p>
												</td>
											</tr>
										</xsl:for-each>
									</xsl:when>
									<xsl:otherwise>
										<tr>
											<td class="bordered">
												<p class="table">无</p>
											</td>
											<td class="bordered">
												<p class="table"/>
											</td>
											<td class="bordered">
												<p class="table"/>
											</td>
											<td class="bordered">
												<p class="table"/>
											</td>
											<td class="bordered">
												<p class="table"/>
											</td>
										</tr>
									</xsl:otherwise>
								</xsl:choose>
							</xsl:otherwise>
						</xsl:choose>
					</xsl:otherwise>
				</xsl:choose>
			</tbody>
		</table>
	</xsl:template>
	<!--personSkill节点解析-->
	<xsl:template match="*" mode="personSkill">
		<xsl:if test="@skillLevelCode = 'sk01'">
			<xsl:text>初级</xsl:text>
		</xsl:if>
		<xsl:if test="@skillLevelCode = 'sk02'">
			<xsl:text>中级</xsl:text>
		</xsl:if>
		<xsl:if test="@skillLevelCode = 'sk03'">
			<xsl:text>高级</xsl:text>
		</xsl:if>
	</xsl:template>
	<xsl:template name="loop">
		<xsl:param name="Count"/>
		<xsl:if test="$Count&lt;1"/>
		<xsl:if test="$Count&gt;1">
			<tr>
				<td class="bordered">
					<p class="table">As required</p>
				</td>
				<td class="bordered">
					<p class="table"/>
				</td>
				<td class="bordered">
					<p class="table"/>
				</td>
				<td class="bordered">
					<p class="table"/>
				</td>
				<td class="bordered">
					<p class="table"/>
				</td>
			</tr>
			<xsl:value-of select="$Count"/>
			<xsl:call-template name="loop">
				<xsl:with-param name="Count">
					<xsl:value-of select="number($Count)-1"/>
				</xsl:with-param>
			</xsl:call-template>
		</xsl:if>
		<xsl:if test="$Count=1">
			<tr>
				<td class="bordered">
					<p class="table">As required</p>
				</td>
				<td class="bordered">
					<p class="table"/>
				</td>
				<td class="bordered">
					<p class="table"/>
				</td>
				<td class="bordered">
					<p class="table"/>
				</td>
				<td class="bordered">
					<p class="table"/>
				</td>
			</tr>
		</xsl:if>
	</xsl:template>
	<!--reqTechInfoGroup节点解析-->
	<xsl:template match="*" mode="reqTechInfoGroup">

</xsl:template>
	<!--reqSupportEquips节点解析-->
	<xsl:template match="*" mode="reqSupportEquips">
		<p class="subtitle">支持装备</p>
		<a name="supequip"/>
		<table cellspacing="0" class="bordered" width="800px">
			<caption class="tableTitle">表 %TABLENO% 支持装备</caption>
			<colgroup>
				<col/>
				<col/>
				<col/>
				<col/>
			</colgroup>
			<thead>
				<tr>
					<th class="bordered">
						<p class="table">名称</p>
					</th>
					<th class="bordered">
						<p class="table">供应商标识</p>
					</th>
					<th class="bordered">
						<p class="table">数量</p>
					</th>
					<th class="bordered">
						<p class="table">备注</p>
					</th>
				</tr>
			</thead>
			<tbody>
				<xsl:choose>
					<xsl:when test="noSupportEquips">
						<tr>
							<td class="bordered">
								<p class="table">无</p>
							</td>
							<td class="bordered">
								<p class="table"/>
							</td>
							<td class="bordered">
								<p class="table"/>
							</td>
							<td class="bordered">
								<p class="table"/>
							</td>
						</tr>
					</xsl:when>
					<xsl:otherwise>
						<xsl:for-each select="supportEquipDescrGroup/supportEquipDescr">
							<tr>
								<td class="bordered">
									<xsl:if test="@id">
										<a>
											<xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute>
										</a>
									</xsl:if>
									<p class="table">
										<xsl:value-of select="name"/>
									</p>
								</td>
								<td class="bordered">
									<p class="table">
										<xsl:value-of select="identNumber/manufacturerCode"/>/<xsl:value-of select="identNumber/partAndSerialNumber/partNumber"/>
									</p>
								</td>
								<td class="bordered">
									<p class="table">
										<xsl:value-of select="reqQuantity"/>
										<xsl:value-of select="reqQuantity/@unitOfMeasure"/>
									</p>
								</td>
								<td class="bordered">
									<p class="table">
										<xsl:value-of select="remarks/simplePara"/>
									</p>
								</td>
							</tr>
						</xsl:for-each>
					</xsl:otherwise>
				</xsl:choose>
			</tbody>
		</table>
	</xsl:template>
	<!--reqSupplies节点解析-->
	<xsl:template match="*" mode="reqSupplies">
		<p class="subtitle">原材料与消耗品</p>
		<a name="supplies"/>
		<table cellspacing="0" class="bordered" width="800px">
			<caption class="tableTitle">表 %TABLENO% 原材料与消耗品</caption>
			<colgroup>
				<col/>
				<col/>
				<col/>
				<col/>
			</colgroup>
			<thead>
				<tr>
					<th class="bordered">
						<p class="table">名称</p>
					</th>
					<th class="bordered">
						<p class="table">供应商标识</p>
					</th>
					<th class="bordered">
						<p class="table">数量</p>
					</th>
					<th class="bordered">
						<p class="table">备注</p>
					</th>
				</tr>
			</thead>
			<tbody>
				<xsl:choose>
					<xsl:when test="noSupplies">
						<tr>
							<td class="bordered">
								<p class="table">无</p>
							</td>
							<td class="bordered">
								<p class="table"/>
							</td>
							<td class="bordered">
								<p class="table"/>
							</td>
							<td class="bordered">
								<p class="table"/>
							</td>
						</tr>
					</xsl:when>
					<xsl:otherwise>
						<xsl:for-each select="supplyDescrGroup/supplyDescr">
							<tr>
								<td class="bordered">
									<xsl:if test="@id">
										<a>
											<xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute>
										</a>
									</xsl:if>
									<p class="table">
										<xsl:value-of select="name"/>
									</p>
								</td>
								<td class="bordered">
									<p class="table">
										<xsl:value-of select="identNumber/manufacturerCode"/>
									</p>
								</td>
								<td class="bordered">
									<p class="table">
										<xsl:value-of select="reqQuantity"/>
									</p>
								</td>
								<td class="bordered">
									<p class="table">
										<xsl:value-of select="remarks/simplePara"/>
									</p>
								</td>
							</tr>
						</xsl:for-each>
					</xsl:otherwise>
				</xsl:choose>
			</tbody>
		</table>
	</xsl:template>
	<!--reqSpares节点解析-->
	<xsl:template match="*" mode="reqSpares">
		<p class="subtitle">备件列表</p>
		<a name="spares"/>
		<table cellspacing="0" class="bordered" width="800px">
			<caption class="tableTitle">表 %TABLENO% 备件列表</caption>
			<colgroup>
				<col/>
				<col/>
				<col/>
				<col/>
			</colgroup>
			<thead>
				<tr>
					<th class="bordered">
						<p class="table">名称</p>
					</th>
					<th class="bordered">
						<p class="table">供应商标识</p>
					</th>
					<th class="bordered">
						<p class="table">数量</p>
					</th>
					<th class="bordered">
						<p class="table">备注</p>
					</th>
				</tr>
			</thead>
			<tbody>
				<xsl:choose>
					<xsl:when test="noSpares">
						<tr>
							<td class="bordered">
								<p class="table">无</p>
							</td>
							<td class="bordered">
								<p class="table"/>
							</td>
							<td class="bordered">
								<p class="table"/>
							</td>
							<td class="bordered">
								<p class="table"/>
							</td>
						</tr>
					</xsl:when>
					<xsl:otherwise>
						<xsl:for-each select="spareDescrGroup/spareDescr">
							<tr>
								<td class="bordered">
									<xsl:if test="@id">
										<a>
											<xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute>
										</a>
									</xsl:if>
									<p class="table">
										<xsl:value-of select="name"/>
									</p>
								</td>
								<td class="bordered">
									<p class="table">
										<xsl:value-of select="identNumber/manufacturerCode"/>
									</p>
								</td>
								<td class="bordered">
									<p class="table">
										<xsl:value-of select="reqQuantity"/>
									</p>
								</td>
								<td class="bordered">
									<p class="table">
										<xsl:value-of select="remarks/simplePara"/>
									</p>
								</td>
							</tr>
						</xsl:for-each>
					</xsl:otherwise>
				</xsl:choose>
			</tbody>
		</table>
	</xsl:template>
	<!--reqSafety节点解析-->
	<xsl:template match="*" mode="reqSafety">
		<xsl:for-each select="safetyRqmts">
			<xsl:choose>
				<xsl:when test="noSafety">
		</xsl:when>
				<xsl:otherwise>
					<p class="subtitle">{{安全条件}}</p>
					<xsl:for-each select="*">
						<xsl:apply-templates select="." mode="para_warning_caution_note"/>
					</xsl:for-each>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:for-each>
	</xsl:template>
	<!--refs内容解析-->
	<xsl:template match="*" mode="refs">
		<p class="subtitle">{{参考}}</p>
		<a>
			<xsl:attribute name="name"><xsl:value-of select="."/></xsl:attribute>
		</a>
		<table cellspacing="0" class="bordered" width="800px">
			<caption class="tableTitle">表 %TABLENO% 参考</caption>
			<colgroup>
				<col/>
				<col/>
			</colgroup>
			<thead>
				<tr>
					<th class="bordered">
						<p class="table">数据模块/技术出版物</p>
					</th>
					<th class="bordered">
						<p class="table">标题</p>
					</th>
				</tr>
			</thead>
			<tbody>
				<xsl:for-each select="dmRef|pmRef|externalPubRef">
					<tr>
						<td class="bordered">
							<p class="table">
								<xsl:if test="name(.) = 'dmRef'">
									<xsl:apply-templates select="dmRefIdent/dmCode" mode="dmCode"/>
								</xsl:if>
								<xsl:if test="name(.) = 'pmRef'">
									<a>
										<xsl:apply-templates select="pmRefIdent/pmCode" mode="pmCode"/>
									</a>
								</xsl:if>
								<xsl:if test="name(.) = 'externalPubRef'">
									<a>
										<xsl:value-of select="externalPubRefIdent/externalPubCode/@pubCodingScheme"/> - 
								<xsl:value-of select="externalPubRefIdent/externalPubCode"/>
									</a>
								</xsl:if>
							</p>
						</td>
						<td class="bordered">
							<p class="table">
								<xsl:if test="name(.) = 'dmRef'">
									<xsl:value-of select="dmRefAddressItems/dmTitle/techName"/> -
	<xsl:value-of select="dmRefAddressItems/dmTitle/infoName"/>
								</xsl:if>
								<xsl:if test="name(.) = 'pmRef'">
									<xsl:value-of select="pmRefAddressItems/pmTitle"/>
								</xsl:if>
								<xsl:if test="name(.) = 'externalPubRef'">
									<xsl:value-of select="externalPubRefIdent/externalPubTitle"/>
								</xsl:if>
							</p>
						</td>
					</tr>
				</xsl:for-each>
			</tbody>
		</table>
	</xsl:template>
	<!--para_warning_caution_note内容解析-->
	<!--para_warning_caution_note内容解析-->
	<xsl:template match="*" mode="para_warning_caution_note">
		<!--para节点-->
		<xsl:if test="name(.) = 'para'">
			<p class="indent">
				<xsl:apply-templates select="." mode="para"/>
			</p>
		</xsl:if>
		<!--warning节点-->
		<xsl:if test="name(.) = 'warning'">
			<div class="warningborder">
				<div class="warning">
					<table cellspacing="0" align="center">
						<tr align="center" valign="middle">
							<td align="center">
								<b>警告</b>
							</td>
						</tr>
						<tr>
							<td>
								<ul>
									<li>
										<span>
											<a name="N10128"/>
											<p class="warnText">
												<xsl:apply-templates select="warningAndCautionPara" mode="para"/>
											</p>
										</span>
									</li>
								</ul>
							</td>
						</tr>
						<tr>
							<td style="lineHeight:2px;" STYLE="font-size:1">
								<div class="hideprint">
									<font height="2px" size="1" color="FFFFFF"> </font>
								</div>
							</td>
						</tr>
					</table>
				</div>
			</div>
		</xsl:if>
		<!--caution节点-->
		<xsl:if test="name(.) = 'caution'">
			<div class="cautionborder">
				<div class="warning">
					<table cellspacing="0" align="center">
						<tr align="center" valign="middle">
							<td align="center">
								<b>注意</b>
							</td>
						</tr>
						<tr>
							<td>
								<ul>
									<li>
										<span>
											<a name="N10172"/>
											<p class="cautText">
												<xsl:apply-templates select="warningAndCautionPara" mode="para"/>
											</p>
										</span>
									</li>
								</ul>
							</td>
						</tr>
						<tr>
							<td style="lineHeight:2px;" STYLE="font-size:1">
								<div class="hideprint">
									<font height="2px" size="1" color="FFFFFF"> </font>
								</div>
							</td>
						</tr>
					</table>
				</div>
			</div>
		</xsl:if>
		<!--note节点-->
		<xsl:if test="name(.) = 'note'">
			<!--<p class="noteTitle">提示</p>-->
			<xsl:if test="notePara">
				<div class="noteborder">
					<div class="note">
						<table cellspacing="0" border="0" align="center">
							<tr align="center" valign="middle">
								<td align="center">
									<b>提示</b>
								</td>
							</tr>
							<tr>
								<td>
									<span>
										<xsl:for-each select="notePara">
											<p class="noteText">
												<xsl:apply-templates select="." mode="para"/>
											</p>
										</xsl:for-each>
									</span>
								</td>
							</tr>
							<tr>
								<td style="lineHeight:2px;" STYLE="font-size:1">
									<div class="hideprint">
										<font height="2px" size="1" color="FFFFFF"> </font>
									</div>
								</td>
							</tr>
						</table>
					</div>
				</div>
			</xsl:if>
		</xsl:if>
	</xsl:template>
	<!--isolationStep内容解析-->
	<xsl:template match="*" mode="isolationStep">
		<xsl:param name="num"/>
		<xsl:param name="st">
			<xsl:value-of select="@id"/>
		</xsl:param>
		<xsl:for-each select="*">
			<xsl:if test="name(.) = 'warning' or name(.) = 'caution' or name(.) = 'note'">
				<xsl:apply-templates select="." mode="para_warning_caution_note"/>
			</xsl:if>
			<xsl:if test="name(.) = 'action'">
				<p class="subtitle">
					<!-- <xsl:value-of select="$num"/> -->
					<span class="blank"/>
					<xsl:element name="a">
						<xsl:attribute name="name"><xsl:value-of select="../@id"/></xsl:attribute>
					</xsl:element>
					<xsl:apply-templates select="." mode="para"/>
				</p>
			</xsl:if>
			<xsl:if test="name(.) = 'isolationStepQuestion'">
				<p class="indent">
					<img src="/images/tip.png"/>
					<xsl:value-of select="."/>
				</p>
			</xsl:if>
			<xsl:if test="name(.) = 'isolationStepAnswer'">
				<xsl:if test="listOfChoices/choice">
					<xsl:for-each select="listOfChoices/choice">
						<p class="subtitle">
							<xsl:value-of select="$num"/>.<xsl:number value="position()" format="1"/>
							<span class="blank"/>
							<xsl:value-of select="."/>
							<xsl:text>继续</xsl:text>
							<span class="blank"/>
							<a>
								<xsl:attribute name="href">#<xsl:value-of select="./@nextActionRefId"/></xsl:attribute>
								<xsl:text>步骤</xsl:text>
								<xsl:choose>
									<!--1.13ot修改-->
									<xsl:when test="substring(@nextActionRefId,string-length(./@nextActionRefId)-1,1)='0'">
										<xsl:value-of select="substring(@nextActionRefId,string-length(./@nextActionRefId))"/>
									</xsl:when>
									<xsl:otherwise>
										<xsl:value-of select="substring(@nextActionRefId,string-length(./@nextActionRefId)-1)"/>
									</xsl:otherwise>
								</xsl:choose>
							</a>
						</p>
					</xsl:for-each>
				</xsl:if>
				<xsl:if test="yesNoAnswer/*">
					<xsl:for-each select="yesNoAnswer/*">
						<!-- 	<p class="subtitle">
					<xsl:value-of select="$num"/>.<xsl:number value="position()" format="1"/> -->
						<span class="blank"/>
						<xsl:if test="position()!=last()">
							<input type="radio">
								<xsl:attribute name="name"><xsl:value-of select="$st"/></xsl:attribute>
								<xsl:attribute name="id"><xsl:value-of select="$st"/>_<xsl:value-of select="@nextActionRefId"/></xsl:attribute>
							
							是
						</input>
							<!-- <xsl:element name="input" type="radio">
					   <xsl:attribute name="name">
					   <xsl:value-of select="$st"/>
					   </xsl:attribute>
					是:
					</xsl:element> -->
						</xsl:if>
						<xsl:if test="position()=last()">
							<input type="radio">
								<xsl:attribute name="name"><xsl:value-of select="$st"/></xsl:attribute>
								<xsl:attribute name="id"><xsl:value-of select="$st"/>_<xsl:value-of select="@nextActionRefId"/></xsl:attribute>
							
							否
						</input>
						</xsl:if>
						<!-- <xsl:text> </xsl:text>继续<span class="blank"/> -->
						<!-- <a>
					<xsl:attribute name="href">#<xsl:value-of select="./@nextActionRefId"/></xsl:attribute>
					<xsl:text>步骤</xsl:text>
					<xsl:choose>	
							<xsl:when test="substring(@nextActionRefId,string-length(./@nextActionRefId)-1,1)='0'">
									<xsl:value-of select="substring(@nextActionRefId,string-length(./@nextActionRefId))"/>
							</xsl:when>
							<xsl:otherwise>
									<xsl:value-of select="substring(@nextActionRefId,string-length(./@nextActionRefId)-1)"/>
							</xsl:otherwise>
					</xsl:choose>
					</a> 
				</p>-->
					</xsl:for-each>
				</xsl:if>
			</xsl:if>
		</xsl:for-each>
	</xsl:template>
	<!--isolationProcedureEnd内容解析-->
	<xsl:template match="*" mode="isolationProcedureEnd">
		<xsl:param name="num"/>
		<p class="subtitle">
			<!-- <xsl:value-of select="$num"/> -->
			<span class="blank"/>
			<xsl:element name="a">
				<xsl:attribute name="name"><xsl:value-of select="./@id"/></xsl:attribute>
			</xsl:element>
			<xsl:apply-templates select="action" mode="para"/>
		</p>
		<p class="indent">结束</p>
	</xsl:template>
	<!--dmRef内容解析-->
	<xsl:template match="*" mode="dmRef">
		<a>
			<xsl:attribute name="href">%PATH%/<xsl:apply-templates select="dmRefIdent/dmCode" mode="dmCode"/>.htm?type=ref<xsl:if test="@referredFragment"><xsl:text>&amp;inner_id=</xsl:text><xsl:value-of select="@referredFragment"/></xsl:if></xsl:attribute>
			<xsl:apply-templates select="dmRefIdent/dmCode" mode="dmCode"/>
			<xsl:if test="@referredFragment">
				<xsl:apply-templates select="." mode="dmRef_value"/>
			</xsl:if>
		</a>
	</xsl:template>
	<xsl:template match="*" mode="dmRef_value">
		<xsl:param name="value">
			<xsl:value-of select="@referredFragment"/>
		</xsl:param>
		<xsl:choose>
			<xsl:when test="substring($value,1,3)='par'"> 段落 </xsl:when>
			<xsl:when test="substring($value,1,3)='tab'"> 表格 </xsl:when>
			<xsl:when test="substring($value,1,3)='fig'"> 多媒体 </xsl:when>
		</xsl:choose>
	</xsl:template>
	<!--para节点解析-->
	<xsl:template match="*" mode="para">
		<xsl:choose>
			<xsl:when test="./child::*">
				<xsl:value-of select="./text()"/>
				<xsl:for-each select="*">
					<!--para节点-->
					<xsl:if test="name(.) = 'para'">
						<xsl:apply-templates select="." mode="para"/>
					</xsl:if>
					<!--internalRef节点-->
					<xsl:if test="name(.) = 'internalRef'">
						<xsl:apply-templates select="." mode="internalRef"/>
					</xsl:if>
					<!--list节点-->
					<xsl:if test="name(.) = 'sequentialList' or name(.) = 'randomList' or name(.) = 'definitionList' or name(.)='attentionRandomList'">
						<xsl:apply-templates select="." mode="list"/>
					</xsl:if>
					<!--superScript节点-->
					<xsl:if test="name(.) = 'superScript'">
						<sup>
							<xsl:value-of select="."/>
						</sup>
					</xsl:if>
					<!--subScript节点-->
					<xsl:if test="name(.) = 'subScript'">
						<sub>
							<xsl:value-of select="."/>
						</sub>
					</xsl:if>
					<!--symbol节点-->
					<xsl:if test="name(.) = 'symbol'">
						<xsl:choose>
							<xsl:when test="./@infoEntityIdent">
								<xsl:element name="image">
									<xsl:attribute name="alt">symbol</xsl:attribute>
									<xsl:attribute name="height">100</xsl:attribute>
									<xsl:attribute name="src">%PATH%/<xsl:value-of select="./@infoEntityIdent"/>.%ext%</xsl:attribute>
								</xsl:element>
							
							</xsl:when>
							<xsl:otherwise>
								<img src="/img/symbol.jpg" alt="symbol"/>
							</xsl:otherwise>
						</xsl:choose>
						
					</xsl:if>
					<!--emphasis节点-->
					<xsl:if test="name(.) = 'emphasis'">
						<xsl:apply-templates select="." mode="emphasis"/>
					</xsl:if>
					<!--dmRef节点-->
					<xsl:if test="name(.) = 'dmRef'">
						<xsl:apply-templates select="." mode="dmRef"/>
					</xsl:if>
					<xsl:apply-templates select=".." mode="text">
						<xsl:with-param name="dnum">
							<xsl:value-of select="position() + 1"/>
						</xsl:with-param>
					</xsl:apply-templates>
				</xsl:for-each>
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="."/>
				<br/>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<!--emphasis内容解析-->
	<xsl:template match="*" mode="emphasis">
		<xsl:choose>
			<xsl:when test="@emphasisType">
				<!--em01节点(加粗)-->
				<xsl:if test="@emphasisType = 'em01'">
					<b>
						<xsl:value-of select="."/>
					</b>
				</xsl:if>
				<!--em02节点(斜体)-->
				<xsl:if test="@emphasisType = 'em02'">
					<i>
						<xsl:value-of select="."/>
					</i>
				</xsl:if>
				<!--em03节点(下划线)-->
				<xsl:if test="@emphasisType = 'em03'">
					<span style="TEXT-DECORATION: underline">
						<xsl:value-of select="."/>
					</span>
				</xsl:if>
				<!--em04节点(上划线)-->
				<xsl:if test="@emphasisType = 'em04'">
					<span style="TEXT-DECORATION: overline">
						<xsl:value-of select="."/>
					</span>
				</xsl:if>
				<!--em05节点(删除线)-->
				<xsl:if test="@emphasisType = 'em05'">
					<span style="TEXT-DECORATION: line-through">
						<xsl:value-of select="."/>
					</span>
				</xsl:if>
			</xsl:when>
			<xsl:otherwise>
				<!--em节点(加粗)默认情况-->
				<xsl:choose>
					<xsl:when test="./child::*">
						<b>
							<xsl:apply-templates select="." mode="para"/>
						</b>
					</xsl:when>
					<xsl:otherwise>
						<b>
							<xsl:value-of select="."/>
						</b>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<!--text内容解析-->
	<xsl:template match="*" mode="text">
		<xsl:param name="dnum"/>
		<xsl:value-of select="text()[number($dnum)]"/>
	</xsl:template>
	<!--list节点解析-->
	<xsl:template match="*" mode="list">
		<xsl:if test="name(.) = 'sequentialList'">
			<xsl:if test="title">
				<xsl:apply-templates select="title" mode="para"/>
			</xsl:if>
			<xsl:for-each select="listItem">
				<div class="indent">
					<xsl:value-of select="position()"/>
					<xsl:text>. </xsl:text>
					<xsl:for-each select="para">
						<xsl:apply-templates select="." mode="para"/>
					</xsl:for-each>
				</div>
			</xsl:for-each>
		</xsl:if>
		<xsl:if test="name(.) = 'randomList'">
			<xsl:if test="title">
				<xsl:apply-templates select="title" mode="para"/>
			</xsl:if>
			<xsl:for-each select="listItem">
				<div class="indent">
					<xsl:if test="../@listItemPrefix = 'pf02'">
						<xsl:text>- </xsl:text>
					</xsl:if>
					<xsl:if test="../@listItemPrefix = 'pf01'">
						<xsl:text>• </xsl:text>
					</xsl:if>
					<xsl:for-each select="para">
						<xsl:choose>
							<xsl:when test="child::*">
								<xsl:apply-templates select="." mode="para"/>
							</xsl:when>
							<xsl:otherwise>
								<xsl:text>- </xsl:text>
								<xsl:apply-templates select="." mode="para"/>
							</xsl:otherwise>
						</xsl:choose>
					</xsl:for-each>
				</div>
			</xsl:for-each>
		</xsl:if>
		<xsl:if test="name(.) = 'definitionList'">
			<table class="tableIndent">
				<xsl:if test="title">
					<!--<caption class="tableTitle">表 %TABLENO% <xsl:value-of select="title"/></caption>-->
				</xsl:if>
				<colgroup>
					<col/>
					<col/>
				</colgroup>
				<tbody>
					<xsl:for-each select="definitionListItem">
						<tr>
							<xsl:if test="listItemTerm">
								<td class="clear">
									<p class="deflist">
										<xsl:value-of select="listItemTerm"/>
									</p>
								</td>
								<td class="clear">
									<p class="table">
										<xsl:apply-templates select="listItemDefinition/para" mode="para"/>
									</p>
								</td>
							</xsl:if>
						</tr>
					</xsl:for-each>
				</tbody>
			</table>
		</xsl:if>
		
		<xsl:if test="name(.) = 'attentionRandomList'">
			<xsl:for-each select="attentionRandomListItem">
				<div class="indent">
					<xsl:for-each select="attentionListItemPara">
						<xsl:text>- </xsl:text><xsl:apply-templates select="." mode="para"/>
					</xsl:for-each>
				</div>
			</xsl:for-each>
		
		</xsl:if>
		
	</xsl:template>
</xsl:stylesheet>
